# name=input('输入姓名')
# price=float(input('输入苹果的单价'))
# weight=int(input('输入苹果的重量'))
# all_price=price*weight
# print(f'{name}买了{weight}斤苹果，单价{price}为元，总价格为{all_price}元')
# print('{}买了{}斤苹果，单价{}为元，总价格为{}元'.format(name,weight,price,all_price))

# name=input('输入姓名')
# if name=='tom':
#     age=int(input('输入年龄'))
#     if age <30:
#         print('小鲜肉')
#     else:
#         print('老腊肉')
# else:
#     print('输入用户名有误')
#
# for x in range(5):
#     print(x)

# i=1
# while i<=10:
#     if i>6:
#         break
#     print(f'吃第{i}个包子')
#     i+=1


# i=1
# while True:
#     if i == 3:
#         i=4
#         continue
#     if i==12:
#         break
#     print(f'吃第{i}个包子')
#     i+=1
#
# a=int(input('请输入整数:'))
# dict= {}
# for x in range(1,a+1):
#     dict[x]=(x*x)
# print(dict)
# info = {'name':'mike', 'age':35, 'city':'sz'}
# ① 增: 字典增加'sex':'man'
# ② 删: 删除上一步增加的元素
# ③ 改: 把年龄修改为18
# ④ 查: 取出姓名，再打印
# info = {'name':'mike', 'age':35, 'city':'sz'}
# info['sex']='man'
# print(info)
# info.pop('sex')
# print(info)
# info['age']=18
# print(info)
# print(info.get('name'))

# my_list = ["hello", "python", "hello", "itcast", "hello"]
# ① 增: 列表末尾增加"heima",
# ② 删: 删除上一步增加的元素'heima'
# ③ 改: 修改列表中最后一个数据为"chuanzhi"
# ④ 查: 1) 取出'python'，再打印 2) 统计'hello'有多少个 3) 统计列表元素个数
# my_list = ["hello", "python", "hello", "itcast", "hello"]
# my_list.append("heima")
# print(my_list)
# print(my_list.pop(-1))
# print(my_list)
# my_list[-1]= "chuanzhi"
# print(my_list)
# print(my_list[1])
# print(my_list.count('hello'))
# print(len(my_list))

# info = {'name': 'mike', 'age': 35, 'city': 'sz'}
#
# a = info.values()
# print(tuple(a))
# b = list(info.keys())
# print(b)
# list1 = '#'.join(b)
# stry = str(list1)
# print(stry)
#

